package com.tuananh.radnom.persist;

import java.util.ArrayList;


import com.tuananh.radnom.model.NetInterface;
import com.tuananh.radnom.model.NetNode;


public interface INetNodeDAO extends ICommit {
	
	public boolean add(NetNode netNode);
	public boolean update(NetNode netNode);
	public boolean remove(String name);
	
	public ArrayList<NetNode> getAll();
	public NetNode getByName(String name);
	//Find by NetInterface name
	public NetNode findByIntName(String name);
	public ArrayList<NetNode> findByIntName(ArrayList<String> names);
	public NetNode findByIntIp(String ip);
	public ArrayList<String> getAllNodeName();
	public boolean updateInfo(NetNode resource);
	public boolean merge(NetNode first,NetNode second);
}
